package com.leiyuee.springbase;


import lombok.*;

import java.io.Serializable;

@Data
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class User implements Cloneable {

    private String name;
    private Integer age;
    private Dept dept;

    @Override
    public User clone() {
        try {
            return (User) super.clone();
        }catch (CloneNotSupportedException e){
            throw new AssertionError();
        }
    }

}
